﻿<Page
    x:Class="ClassRoom.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:ClassRoom"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d">

    <Grid Background="{StaticResource ApplicationPageBackgroundThemeBrush}">
        <Border BorderBrush="Black" BorderThickness="1" HorizontalAlignment="Left" Height="285" Margin="27,38,0,0" VerticalAlignment="Top" Width="367" Background="#FF4B0000">
            <Grid >
                <TextBlock TextWrapping="Wrap" Text="Input" Margin="10,10,241,247"  FontSize="16"/>
                <TextBlock HorizontalAlignment="Left" Margin="10,41,0,0" TextWrapping="Wrap" Text="Id" VerticalAlignment="Top" Height="32" Width="114" FontSize="16"/>
                <TextBox x:Name="_Id" HorizontalAlignment="Left" Margin="147,41,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Height="32" Width="210"/>
                <TextBlock HorizontalAlignment="Left" Margin="10,78,0,0" TextWrapping="Wrap" Text="First Name" VerticalAlignment="Top" Height="32" Width="114" FontSize="16"/>
                <TextBox x:Name="_FirstName" HorizontalAlignment="Left" Margin="147,78,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Height="32" Width="210"/>
                <TextBlock HorizontalAlignment="Left" Margin="10,115,0,0" TextWrapping="Wrap" Text="Date of Birth" VerticalAlignment="Top" Height="32" Width="114" FontSize="16"/>
                <TextBox x:Name="_MonthOfBirth" HorizontalAlignment="Left" Margin="147,115,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Height="32" Width="64"/>
                <TextBox x:Name="_DayOfBirth" HorizontalAlignment="Left" Margin="220,115,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Height="32" Width="64"/>
                <TextBox x:Name="_YearOfBirth" HorizontalAlignment="Left" Margin="293,115,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Height="32" Width="64"/>
                <TextBlock HorizontalAlignment="Left" Margin="10,152,0,0" TextWrapping="Wrap" Text="Hobbies" VerticalAlignment="Top" Height="32" Width="114" FontSize="16"/>
                <TextBox x:Name="_Hobbies" HorizontalAlignment="Left" Margin="147,152,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Height="32" Width="210"/>
                <TextBlock HorizontalAlignment="Left" Margin="10,189,0,0" TextWrapping="Wrap" Text="Score" VerticalAlignment="Top" Height="32" Width="114" FontSize="16"/>
                <TextBox x:Name="_Score" HorizontalAlignment="Left" Margin="147,189,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Height="32" Width="210"/>
                <Button Content="Add New or Update" HorizontalAlignment="Left" Margin="147,226,0,0" VerticalAlignment="Top" Height="44" Width="210" FontSize="16" Click="OnSaveClicked" RenderTransformOrigin="1.474,0.455"/>
            </Grid>
        </Border>
        <Border BorderBrush="Black" BorderThickness="1" HorizontalAlignment="Left" Height="212" Margin="416,38,0,0" VerticalAlignment="Top" Width="232" Background="#FF4B0000">
            <Grid Margin="0,0,-1,-1" >
                <TextBlock TextWrapping="Wrap" Text="Find" Margin="10,10,157,175"  FontSize="16"/>
                <TextBox x:Name="_FindId" HorizontalAlignment="Left" Margin="10,37,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Height="32" Width="33"/>
                <Button Content="Find by Id" HorizontalAlignment="Left" Margin="80,31,0,0" VerticalAlignment="Top" Height="45" Width="137" Click="OnFindByIdClicked" FontSize="16"/>
                <TextBox x:Name="_FindYearOfBirth" HorizontalAlignment="Left" Margin="10,82,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Height="32" Width="64"/>
                <Button Content="Find by Year" HorizontalAlignment="Left" Margin="80,76,0,0" VerticalAlignment="Top" Height="44" Width="137" Click="OnFindByYearClicked" FontSize="16"/>
                <TextBox x:Name="_FindScore" HorizontalAlignment="Left" Margin="10,126,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Height="32" Width="32" RenderTransformOrigin="0.536,0.917" />
                <Button Content="Find by Score" HorizontalAlignment="Left" Margin="80,120,0,0" VerticalAlignment="Top" Height="44" Width="137" Click="OnFindByScoreClicked" FontSize="16" RenderTransformOrigin="0.544,0.148"/>
                <Button Content="Find All" HorizontalAlignment="Left" Margin="80,164,0,-2" VerticalAlignment="Top" Height="44" Width="137" FontSize="16" Click="OnDisplayAllClicked"/>
            </Grid>
        </Border>
        <Border BorderBrush="Black" BorderThickness="1" HorizontalAlignment="Left" Height="73" Margin="416,250,0,0" VerticalAlignment="Top" Width="232" Background="#FF4B0000">
            <Grid Margin="0,0,-1,-1" >
                <TextBlock TextWrapping="Wrap" Text="Delete" Margin="10,10,170,42"  FontSize="16"/>
                <TextBox x:Name="_DeleteId" HorizontalAlignment="Left" Margin="10,33,0,7" TextWrapping="Wrap" Width="33"/>
                <Button Content="Delete by Id" HorizontalAlignment="Left" Margin="81,26,0,0" VerticalAlignment="Top" Height="44" Width="140" Click="OnDeleteByIdClicked" FontSize="16" RenderTransformOrigin="1.043,0.386"/>
            </Grid>
        </Border>

        <ListView x:Name="InfoList" HorizontalAlignment="Left" Height="329" Margin="27,355,0,0" VerticalAlignment="Top" Width="621" Background="#FF4B0000"/>

        <Border BorderBrush="Black" BorderThickness="1" HorizontalAlignment="Left" Height="285" Margin="720,38,0,0" VerticalAlignment="Top" Width="514" Background="#FF4B0000">
            <Grid>
                <TextBlock HorizontalAlignment="Left" Height="34" TextWrapping="Wrap" Text="Buffer data" VerticalAlignment="Top" Width="190" FontSize="16" FontFamily="Global User Interface" Margin="10,10,0,0" />
                <TextBlock HorizontalAlignment="Left" Margin="10,41,0,0" TextWrapping="Wrap" Text="Id" VerticalAlignment="Top" Height="32" Width="34" FontSize="16"/>
                <TextBox x:Name="_IdForBufferData" HorizontalAlignment="Left" Margin="46,41,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Height="32" Width="17"/>
                <TextBox x:Name="_BufferData" HorizontalAlignment="Left" Margin="130,41,0,0" TextWrapping="Wrap" Text="" VerticalAlignment="Top" Height="187" Width="365"/>
                <Button Content="Save Buffer" HorizontalAlignment="Left" Margin="130,233,0,0" VerticalAlignment="Top" Width="178" FontSize="16" Click="OnSaveBufferClicked"/>
                <Button Content="Load Buffer" HorizontalAlignment="Left" Margin="318,233,0,0" VerticalAlignment="Top" Width="180." FontSize="16" Click="OnLoadBufferClicked"/>
            </Grid>
        </Border>
        <Border BorderBrush="Black" BorderThickness="1" HorizontalAlignment="Left" Height="329" Margin="722,355,0,0" VerticalAlignment="Top" Width="530" Background="#FF4B0000">
            <Grid>
                <TextBlock HorizontalAlignment="Left" TextWrapping="Wrap" Text="Notes" VerticalAlignment="Top" Height="34" Width="163" FontSize="16" Margin="10,10,0,0" />
                <TextBlock HorizontalAlignment="Left" Margin="10,41,0,0" TextWrapping="Wrap" Text="Id" VerticalAlignment="Top" Height="32" Width="34" FontSize="16"/>
                <TextBox x:Name="_IdForNotesData" HorizontalAlignment="Left" Margin="46,41,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Height="32" Width="17"/>
                <TextBlock x:Name="_AllNotes" HorizontalAlignment="Left" Margin="124,34,0,0" TextWrapping="Wrap" Text="" VerticalAlignment="Top" Height="202" Width="367" />
                <TextBlock HorizontalAlignment="Left" Margin="10,241,0,0" TextWrapping="Wrap" Text="New Note" VerticalAlignment="Top" Height="40" Width="109" FontSize="16" />
                <TextBox x:Name="_NewNote" HorizontalAlignment="Left" Margin="124,241,0,0" TextWrapping="Wrap" Text="" VerticalAlignment="Top" Width="367" Height="31"/>
                <Button Content="Append Note" HorizontalAlignment="Left" Margin="124,277,0,0" VerticalAlignment="Top" Width="180" FontSize="16" Click="OnAppendNoteClicked"/>
                <Button Content="Load Notes" HorizontalAlignment="Left" Margin="311,277,0,0" VerticalAlignment="Top" Width="180" FontSize="16" Click="OnLoadNotesClicked"/>
            </Grid>
        </Border>
    </Grid>
</Page>
